#ifndef _SFMLRENDER_H__
#define _SFMLRENDER_H__

#include <SFML/Graphics.hpp>

#include "Render.hpp"

namespace openfe
{
  class SFMLRender : public Render
  {
    Game* ga;
    sf::RenderWindow* app;
    
  public:
    SFMLRender(SFMLGame* g)
      :ga(g) //the type cast is on purpose, it will allow us to get the SFML specific code easily
    {
      app = g->getMainWindow();
      app->SetFramerateLimit(20);
    }
    
    void update()
    {
      app->Clear();
      app->Display();
    }
  };
}

#endif
